#pragma once
#pragma warning(disable : 4996)
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
#include<stdbool.h>
#include<time.h>
typedef int HPDateType;
typedef struct Heap
{
	HPDateType* tree;
	int capicity;
	int size;

}Heap;
void InIt(Heap* hp);
void HeapDestory(Heap* hp);
void HeapPush(Heap* hp, HPDateType x);
void AdjustUp(HPDateType* tree, int children);
void Swap(HPDateType* tree, HPDateType parents, HPDateType children);
void HeapPop(Heap* hp);
void AdjustDown(HPDateType* tree, int parents, int size);
HPDateType HeapTop(Heap* hp);
int HeapSize(Heap* hp);